
<div class="moduleTopNav clearfix">
	<div class="fl-l">
		<?php $module->printAddLink($lang->get('add-fus')); ?>
	</div>
	<div class="fl-r"></div>
</div>

<table class="datatable">
	<thead>
		<tr>
			<td>&nbsp;</td>
			<td><?php $module->printSortLink($lang->get('key'), 'key'); ?></td>
			<td><?php $module->printSortLink($lang->get('text'), 'value'); ?></td>
		</tr>
	</thead>
	<tbody>
		<?php
		
		$structure = array('key', 'value');
		$module->setStructure($structure);
		
		$sql = "SELECT * FROM ".$db->module('pages_fus');
		$res = $module->queryData($sql);
		if(mysql_num_rows($res)) {
			while($row = mysql_fetch_array($res)) {
				
				$data = array(	'id'				=> stripslashes($row['id'])
								,'key'				=> stripslashes($row['key'])
								,'value'			=> substr(strip_tags(stripslashes($row['value'])), 0, 70).'...'
								);
				$module->printTableRow($data);
				
			}
		} else {
			$module->printEmptyTableRow($lang->get('no-items-found'));
		}
		
		?>
	</tbody>
</table>
